# 1.将两个列表的数据按key,value组合成字典
a = ['content-type','content-length','connection']
b = ['text/html',14,'keep-alive']
c = zip(a,b)
print(c)  # <zip object at 0x00EBC528>
# [('content-type', 'text/html'), ('content-length', 14), ('connection', 'keep-alive')]
print(list(zip(a,b)))


# 2.将http请求参数数据放进列表 flask底层实现
query_string = 'username=disen&password=123'
args = { item.split('=')[0]:item.split('=')[1] for item in query_string.split('&')}
print(args)